x11: Create legacy GLX contexts
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 6 Oct 2015 17:59:35 +0000 (18:59 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 7 Oct 2015 15:21:57 +0000 (16:21 +0100)
commit18cae47e17522a37477988d7e88055f7dc467df5
treee3a15e433a4b7e7578cf2c02b180b1e07bdb1686
parente636c316a67bbb2888d25de2036d20149c286120
x11: Create legacy GLX contexts

If GLX has support for the GLX_ARB_create_context_profile extension,
then we use the GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; if it does
not, we fall back to the old glXCreateNewContext() API.

We use the shared GdkGLContext to decide whether the GLX context should
use the legacy bit or not.

https://bugzilla.gnome.org/show_bug.cgi?id=756142
gdk/x11/gdkglcontext-x11.c